<?php
namespace Home\Controller;
use Think\Controller;
class VideoController extends Controller {
    public function getVideos(){

        // $m_id = $_GET['m_id'];

        $videos = M('videos');
        $data = $videos -> order("video_id")->select();

        echo json_encode($data);
         echo "<br>";

    }
    public function getVideoById(){


        $getVideoById = M('videos');
        $data = $getVideoById -> find($video_id);

        echo json_encode($data);
         echo "<br>";

    }
}
?>
